<?php
namespace app\demo\controller;

use app\BaseController;
use think\exception\HttpException;

class Index extends BaseController
{
    public function index()
    {
        dump(2);
        return 'abc';
    }

    public function dj()
    {
        throw new HttpException(404, '炸藕到');
    }

    public function fuck()
    {
        return 'abfuckc'.$b;
    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
